package main

import (
	"bufio"
	"fmt"
	"os"
)

func main() {
	fmt.Println("请输入你的姓名：")
	scanner := bufio.NewScanner(os.Stdin)
	if err := scanner.Err(); err != nil {
		fmt.Println(os.Stderr, "读取输入错误", err)
	} else if scanner.Scan() {
		name := scanner.Text()
		fmt.Printf("hello %s \n", name)
	}
}
